package com.springboot.gateway.controller;

import com.springboot.gateway.service.ProviderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 系统日志表 前端控制器
 * </p>
 *
 * @author 福小林
 * @since 2019-10-02
 */
@RestController
@RequestMapping("/sys-log")
public class SysLogController {
    @Resource
    private ProviderClient providerClient;

    @GetMapping("/helloFeign")
    public String helloFeign(){
        return providerClient.hello("zhangsan");
    }
    @GetMapping("/helloAbc")
    public String helloAbc(){
        return providerClient.abc();
    }

    
    @GetMapping("/hellodc")
    public String helloDc(){
        return "get进入成功";
    }
    @PostMapping("/hellodc")
    public String helloDcp(){
        return "post进入成功";
    }
}
